package com.indusfo.spc.service;

import com.indusfo.spc.pojo.Rule;
import com.indusfo.spc.vo.JSONObject;

import java.util.List;

public interface RuleService {
    /**
     * 查询
     * @param rule
     * @return
     */
    JSONObject queryRule(Rule rule);

    /**
     * 新增
     */
    JSONObject insertRule(Rule rule);

    /**
     * 修改
     */
    JSONObject updateRule(Rule rule);

    /**
     * 删除
     */
    JSONObject deleteRule(Integer[] ruleIds, Integer dataState);


    JSONObject createRule(Rule rule);


    List<String>  otherRule(Integer ruleId,Integer createNum);
    List<String>  orderRule(Integer matId,Integer createNum);
    List<String>  batchRule(Integer orderId,Integer createNum);
    List<String>  generateRule(Rule rule);
}
